inverse of a matrix by elementary transformation